﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucGroupProductAddUpdate.ascx.cs" Inherits="MyWeb.Admin.Usercontrols.ucGroupProductManager" %>
<%@ Register TagPrefix="CKEditor" Namespace="CKEditor.NET" Assembly="CKEditor.NET, Version=3.6.4.0, Culture=neutral, PublicKeyToken=e379cdf2f8354999" %>
<div id="page-content">
    <div id="page-header">
        <h1>
            <asp:Label ID="lblPageHeader" runat="server" Text="Chi tiết nhóm sản phẩm"></asp:Label></h1>
    </div>
    <div class="container">
        <div class="box-header">
            <asp:Label ID="lblBoxHeader" runat="server" Text="Thông tin chi tiết"></asp:Label>
        </div>
        <div class="box">
            <table id="myTable" class="admintable" cellspacing="1" width="100%">
                <tr>
                    <td class="key">
                    <td></td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label1" runat="server" Text="Tên nhóm:" Font-Bold="True" ></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Tên nhóm không được bỏ trống" ControlToValidate="txtName" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="lblmk" runat="server" Text="Mô tả:" Font-Bold="True" ></asp:Label></td>
                    <td>
                        <CKEditor:CKEditorControl ID="CKEditor1" runat="server"  Width="95%" Height="200px" Toolbar="Bold|Italic|-|NumberedList|BulletedList|-|Link|Unlink"></CKEditor:CKEditorControl></td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="lblremk" runat="server" Text="Hình ảnh:" Font-Bold="True"></asp:Label></td>
                    <td class="auto-style3">
                        <asp:TextBox ID="txtImage" runat="server" Width="300px"></asp:TextBox>
                        <input type="button" class="button" value="..." onclick="BrowseServer();" />
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label6" runat="server" Text="Thứ tự:" Font-Bold="True" ></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtOrder" runat="server" Width="100px" TextMode="Number"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage=" Thứ tự không được bỏ trống" ControlToValidate="txtOrder" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="txtCpmg" runat="server" Text="Công bố:" Font-Bold="True" ></asp:Label></td>
                    <td>&nbsp;&nbsp;
                        <asp:CheckBox ID="ckCongbo" runat="server" Checked="True" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Lưu" OnClick="btnSave_Click" />
            <asp:Button ID="btnSaveAndNew" runat="server" CssClass="button" Text="Lưu & Thêm mới" OnClick="btnSaveAndNew_Click" />
            <asp:Button ID="btnCancelAdd" runat="server" CausesValidation="False" CssClass="button" Text="Đóng" OnClick="btnCancelAdd_Click" />
        </div>
    </div>
</div>
<script src="../ckfinder/ckfinder.js"></script>
<script type="text/javascript">
    function BrowseServer() {
        var finder = new CKFinder();
        finder.basePath = "ckfinder";
        finder.selectActionFunction = SetFileField;
        finder.popup();
    }
    function SetFileField(fileUrl) {
        document.getElementById('ContentPlaceHolder1_ctl00_txtImage').value = fileUrl;
    }
</script>
